/**
 * Created by 图图 on 2018/4/13.
 */
import {Notification} from 'element-ui';

export default {
    success(text){
        Notification({
            title: '提示',
            message: text,
            position: 'top-left',
            showClose: false,
            type: 'success'
        });
    },
    warning(text){
        Notification({
            title: '警告',
            message: text,
            position: 'top-left',
            showClose: false,
            type: 'warning',
        });
    }
}